package com.norman.sorry.core.moves;

/**
 * Thrown when a move is an invalid move. Reasons include but are not limited
 * to:
 * <ul>
 * <li>Game piece cannot physically move to the new tile.
 * <li>Game piece will remove a game piece of the same color from the game
 * board.
 * </ul>
 * 
 * @author Brian Norman
 * @version 0.0.1 beta
 * @since 0.0.1 beta
 */
public class InvalidMoveException extends RuntimeException {

   /**
    * Determines if a deserialized file is compatible with this class.
    */
   private static final long serialVersionUID = 7116593492581206669L;

   /**
    * Constructs a <code>InvalidMoveException</code> with no detail message.
    */
   public InvalidMoveException() {
      super();
   }

   /**
    * Constructs a <code>InvalidMoveException</code> with the specified detail
    * message.
    * 
    * @param s
    *           the detail message.
    */
   public InvalidMoveException(String s) {
      super(s);
   }

}
